<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>测试</button>
    <script>
        var s = "212454asd";
        console.log(isNaN(s));
        var m = Number(s);
        console.log(isNaN(m));
        console.log(typeof m);
        var v = isNaN(s);
        console.log(v);
        var btnEle = document.querySelector("button");
                btnEle.onclick = function () {
                    window.location.hash = "#123" ; 
                }
    </script>
</body>
</html>